Macro imaging method and terminal

ABSTRACT

A camera module comprises an image sensor having a size greater than or equal to 1/3.06 inch and less than or equal to 1/2.78 inch and a lens module comprising at least five lenses disposed in sequence between an object side and an image side of the camera module. A ratio between a half-image height of the lens module and a total track length of the camera module is greater than or equal to 0.5 and less than or equal to 0.6. A field of view of the lens module is greater than or equal to 100 degrees. An aperture of the lens module is greater than or equal to F1.8 and less than or equal to F2.4. An equivalent focal length of the lens module is greater than or equal to 10 mm and less than or equal to 20 mm.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.17/286,378, filed on Apr. 16, 2021, which is a national stage ofInternational Application No. PCT/CN2019/111213, filed on Oct. 15, 2019,which claims priority to Chinese Patent Application No. 201811206371.X,filed on Oct. 16, 2018. All of the aforementioned patent applicationsare hereby incorporated by reference in their entireties.

TECHNICAL FIELD

This application relates to the field of terminal photographingtechnologies, and in particular, to a macro imaging method and aterminal.

BACKGROUND

Usually, a user may shoot a static photo or a dynamic video by using acamera on an intelligent terminal. Currently, camera design manners ofintelligent terminals are classified into a prime lens design and a zoomlens design. In the prime lens design, a focal length of a camera is adetermined value. For example, the focal length of the camera may be 27mm, 30 mm, 54 mm, or another value. In the zoom lens design, a focallength of a camera can be adjusted. In a general use scenario, to ensurethat a camera can focus both at an infinitely long distance from aphotographed object and at an infinitely short distance from thephotographed object, a focus distance of the camera is usually greaterthan 7 cm.

In many application scenarios, a user needs to take a picture at a shortdistance, for example, the user wants to take a picture of an insectthat is very close to a lens assembly. However, for a shorter focusdistance, for example, 1 cm to 5 cm, an imaging result of a camera of anexisting intelligent terminal is blurry, and quality of an obtainedimage is relatively low.

SUMMARY

Embodiments of this application provide a terminal that can obtain ahigh-quality image through imaging in a photographing scenario in whicha focus distance is, for example, 1 cm to 5 cm.

To achieve the foregoing objective, the following technical solutionsare used in the embodiments of this application.

According to a first aspect, an embodiment of this application providesa terminal. The terminal includes a camera module, an input component,an output component, and a processor. From an object side to an imageside, the camera module includes a lens assembly, a lens assemblydriving apparatus, and an image sensor.

The lens assembly is configured to support clear imaging when a distancebetween a photographed object and the image sensor is within a macrorange. The lens assembly driving apparatus is configured to: when thedistance between the photographed object and the image sensor is withinthe macro range, drive the lens assembly to move along an optical axis,where a driving stroke of the lens assembly driving apparatus is relatedto a shortest focus distance of the terminal. The processor isconfigured to control the lens assembly driving apparatus, so that thelens assembly completes focusing on the photographed object. The inputcomponent is configured to receive a photographing instruction that isinput by a user, where the photographing instruction is used to shoot afocused picture. The output component is configured to output the shotpicture. In this way, when the distance between the photographed objectand the image sensor is within the macro range, the processor cancontrol the lens assembly driving apparatus, so that the lens assemblysuccessfully focuses on the photographed object.

In a possible design, the macro range is from 1 cm to 5 cm.

Optionally, the lens assembly is an ultra-wide-angle lens assembly, afield of view FOV of the ultra-wide-angle lens assembly is greater thanor equal to 100°, and a value range of an equivalent focal length of theultra-wide-angle lens assembly is from 10 mm to 20 mm.

Optionally, the ultra-wide-angle lens assembly has a negative distortionin an edge field of view, and the negative distortion is greater than orequal to −30%. A horizontal magnification range of the ultra-wide-anglelens assembly in a central field of view is from 0.03 to 0.43.

Optionally, a quantity of lenses in the ultra-wide-angle lens assemblyranges from 5 to 8, and a size of the image sensor ranges from 1/3.06 to1/2.78.

In a possible design, the lens assembly is an inner focusing lensassembly. The processor is further configured to adjust a focal lengthof the inner focusing lens assembly.

Optionally, the inner focusing lens assembly includes one or more lenseswhose focal power is variable, and the focal power of the lens whosefocal power is variable is associated with the focal length of the innerfocusing lens assembly.

That the processor is configured to adjust a focal length of the innerfocusing lens assembly may be specifically implemented as follows: Theprocessor is configured to adjust the focal power of the one or morelenses whose focal power is variable, to adjust the focal length of theinner focusing lens assembly.

Optionally, a refractive index of the lens whose focal power is variableis related to the focal power of the lens whose focal power is variable.

That the processor is configured to adjust the focal power of the one ormore lenses whose focal power is variable may be specificallyimplemented as follows: The processor is configured to control a currentor voltage that is input to the lens whose focal power is variable, tochange the refractive index of the lens whose focal power is variable,so as to adjust the focal power of the lens whose focal power isvariable.

Alternatively, a shape of the lens whose focal power is variable isrelated to the focal power of the lens whose focal power is variable.

Correspondingly, that the processor is configured to adjust the focalpower of the one or more lenses whose focal power is variable may bespecifically implemented as follows: The processor is configured tocontrol the lens whose focal power is variable to deform, so as toadjust the focal power of the lens whose focal power is variable.

Optionally, the lens whose focal power is variable is anelectro-material lens or a deformable lens.

Therefore, the refractive index of the lens whose focal power isvariable may be changed by applying an electric field to the lens whosefocal power is variable, or the lens whose focal power is variable maybe deformed by pushing and squeezing the lens by using a drivingapparatus, so as to change the focal power of the lens whose focal poweris variable, thereby adjusting the focal length of the inner focusinglens assembly. In this way, the terminal can support clear imaging whenthe photographed object is relatively close to the image sensor.

In a possible design, the terminal further includes a lens drivingapparatus. The inner focusing lens assembly includes n lenses that aresequentially arranged along the optical axis. The n lenses include oneor more movable lens groups, and each movable lens group includes one ormore movable lenses. The movable lens is a lens whose position relativeto the lens assembly along the optical axis is changeable, and therelative position of the movable lens along the optical axis is relatedto the focal length of the inner focusing lens assembly.

The lens driving apparatus is configured to drive the one or moremovable lens groups in the inner focusing lens assembly to move alongthe optical axis, to adjust the focal length of the inner focusing lensassembly.

In this way, in this embodiment of this application, through driving ofthe lens driving apparatus, relative positions between movable lenses inthe lens assembly along the optical axis change, that is, a spacingbetween the lenses in the lens assembly changes. Therefore, an opticalcharacteristic, for example, the focal length, of the entire lensassembly may change. To be specific, in this embodiment of thisapplication, the focal length of the lens assembly can be adjusted bydynamically adjusting the spacing between the lenses in the lensassembly, so that the terminal can obtain a relatively clear imagethrough imaging in a macro mode.

According to a second aspect, an embodiment of this application providesa macro imaging method. The method is applied to a terminal. Theterminal includes a camera module, an input component, an outputcomponent, and a processor. From an object side to an image side, thecamera module includes a lens assembly, a lens assembly drivingapparatus, and an image sensor. The lens assembly supports clear imagingwhen a distance between a photographed object and the image sensor iswithin a macro range. The method includes the following steps:

If it is detected that the distance between the photographed object andthe image sensor is within the macro range, the processor controls thelens assembly driving apparatus to drive the lens assembly to move alongan optical axis, so that the lens assembly completes focusing on thephotographed object. The input component receives a photographinginstruction that is input by a user, where the photographing instructionis used to shoot a focused picture. Then, the output component outputsthe shot picture.

In a possible design, after the terminal detects that the distancebetween the photographed object and the image sensor is within the macrorange, the terminal may further perform the following step:

The output component outputs a first interface, where the firstinterface is used to prompt the user whether to enable macrophotographing.

According to the macro imaging method provided in this embodiment ofthis application, the terminal may detect whether the distance betweenthe photographed object and the image sensor is within the macro range.When the macro condition is met, the lens assembly driving apparatus inthe terminal pushes the lens assembly to move along the optical axis, tocomplete focusing. In this way, a relatively clear image can bephotographed in a macro mode.

In a possible design, the macro range is from 1 cm to 5 cm.

In a possible design, the lens assembly is an ultra-wide-angle lensassembly, a field of view FOV of the ultra-wide-angle lens assembly isgreater than or equal to 100°, and a value range of an equivalent focallength of the ultra-wide-angle lens assembly is from 10 mm to 20 mm.

Optionally, the ultra-wide-angle lens assembly has a negative distortionin an edge field of view, and the negative distortion is greater than orequal to −30%. A horizontal magnification range of the ultra-wide-anglelens assembly in a central field of view is from 0.03 to 0.43.

Optionally, a quantity of lenses in the ultra-wide-angle lens assemblyranges from 5 to 8, and a size of the image sensor ranges from 1/3.06 to1/2.78.

In a possible design, the lens assembly is an inner focusing lensassembly. That the processor controls the lens assembly drivingapparatus to drive the lens assembly to move along an optical axis, sothat the lens assembly completes focusing on the photographed object maybe specifically implemented as follows: The processor controls the lensassembly driving apparatus to drive the inner focusing lens assembly tomove along the optical axis, and controls adjustment of a focal lengthof the inner focusing lens assembly, so that the inner focusing lensassembly completes focusing on the photographed object.

Optionally, the terminal controls, by using the processor, a current orvoltage that is input to a lens whose focal power is variable, to adjustthe focal power of the lens whose focal power is variable.Alternatively, the terminal controls, by using the processor, a lenswhose focal power is variable to deform, to adjust the focal power ofthe lens whose focal power is variable. Certainly, the processor of theterminal may alternatively control, in another manner, the focal powerof the lens whose focal power is variable to change, so as to adjust thefocal length of the inner focusing lens assembly.

According to the macro imaging method provided in this embodiment ofthis application, when the terminal detects that the distance betweenthe photographed object and the image sensor meets the macro condition,the terminal may change the focal power of the lens by controllingdeformation or a refractive index of the lens, so as to adjust the focallength of the lens assembly, and may complete focusing by using the lensassembly driving apparatus. In this way, a high-quality image can beobtained through imaging in the macro mode.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic structural diagram of a terminal according to anembodiment of this application;

FIG. 2 is a schematic diagram of disposition of a camera module on aterminal according to an embodiment of this application;

FIG. 3 is a schematic structural diagram of a camera module according toan embodiment of this application;

FIG. 4 is a schematic diagram of a connection between a voice coil motorand a lens assembly according to an embodiment of this application;

FIG. 5 is a schematic structural diagram of a camera module with anultra-wide-angle lens assembly according to an embodiment of thisapplication;

FIG. 6 is a schematic diagram of a field of view;

FIG. 7 shows pictures shot within a macro range by an existing mobilephone and a mobile phone according to an embodiment of this application;

FIG. 8 shows a picture shot within a macro range by a terminal accordingto an embodiment of this application;

FIG. 9 shows a picture shot within a macro range by a terminal accordingto an embodiment of this application;

FIG. 10 is a first schematic structural diagram of a camera module withan inner focusing lens assembly according to an embodiment of thisapplication;

FIG. 11 is a second schematic structural diagram of a camera module withan inner focusing lens assembly according to an embodiment of thisapplication;

FIG. 12 is a flowchart of a macro imaging method according to anembodiment of this application;

FIG. 13 is a flowchart of a macro imaging method according to anembodiment of this application;

FIG. 14 is a flowchart of a macro imaging method according to anembodiment of this application;

FIG. 15(a) to FIG. 15(d) are a first schematic diagram of a macroimaging scenario according to an embodiment of this application;

FIG. 16(a) to FIG. 16(c) are a second schematic diagram of a macroimaging scenario according to an embodiment of this application; and

FIG. 17(a) to FIG. 17(d) are a third schematic diagram of a macroimaging scenario according to an embodiment of this application.

DESCRIPTION OF REFERENCE SIGNS

1: Camera lens

2: Voice coil motor

DESCRIPTION OF EMBODIMENTS

First, terms used in embodiments of this application are described.

Field of view (Field of view, FOV): Referring to FIG. 6, in an opticalinstrument, with a lens assembly of the optical instrument as a vertex,an included angle formed between two edges of a maximum range in whichan image of a photographed object can pass through the lens assembly isreferred to as a field of view. A size of the field of view determines aview range of the optical instrument. A larger field of view indicates alarger view range. That is, an object within the field of view can bephotographed by using the lens assembly, and an object outside the fieldof view is invisible. In FIG. 6, ab is a diameter of a visible range, apoint c is a center of the visible range, oc is an object distance, andω is the field of view.

Size of an image sensor: This term refers to a size of a photosensitiveelement in the image sensor.

Equivalent focal length: Because photosensitive elements of imagesensors in different camera modules have different sizes, a same lensassembly achieves different imaging effects when being used withdifferent photosensitive elements. For ease of understanding anddescription, focal lengths of different lens assemblies are converted toequivalent focal lengths of a standard camera based on specificproportion coefficients. The standard camera may be a full-frame camera.For a method for converting focal lengths of different lens assembliesto equivalent focal lengths of a standard camera, refer to the priorart. Details are not described herein.

Depth of field: This term refers to a clear or sharp range of imaging ofa photographed object on a photosensitive element when a camera modulecompletes focusing. A larger clear range of imaging indicates a largerdepth of field, and a smaller clear range of imaging indicates a smallerdepth of field. In addition, the depth of field is related to a bokeheffect. Usually, a smaller depth of field corresponds to a better bokeheffect, and a larger depth of field corresponds to a poorer bokeheffect.

In the specification and accompanying drawings of this application, theterms “first”, “second”, and so on are intended to distinguish betweendifferent objects, or distinguish between different processing on a sameobject, but do not indicate a particular order of the objects. Inaddition, the terms “including”, “containing”, or any other variantthereof mentioned in descriptions of this application, are intended tocover a non-exclusive inclusion. For example, a process, a method, asystem, a product, or a device that includes a series of steps or unitsis not limited to the listed steps or units, but optionally furtherincludes other unlisted steps or units, or optionally further includesanother inherent step or unit of the process, the method, the product,or the device. It should be noted that, in the embodiments of thisapplication, the word “example” or “for example” is used to representgiving an example, an illustration, or a description. Any embodiment ordesign scheme described as an “example” or “for example” in theembodiments of this application should not be explained as being morepreferred or having more advantages than another embodiment or designscheme. Exactly, use of the word “example” or “for example” or the likeis intended to present a relative concept in a specific manner.

A terminal provided in the embodiments of this application may be aportable electronic device with a photographing function, such as amobile phone, a wearable device, an augmented reality (AugmentedReality, AR) device/a virtual reality (Virtual Reality, VR) device, atablet computer, a notebook computer, an ultra-mobile personal computer(Ultra-Mobile personal computer, UMPC), a netbook, or a personal digitalassistant (Personal Digital Assistant, PDA). This is not limited in theembodiments of this application. An example embodiment of the portableelectronic device includes but is not limited to a portable electronicdevice using iOS®, Android®, Microsoft®, or another operating system.The portable electronic device may alternatively be another portableelectronic device, such as a laptop computer (laptop) with atouch-sensitive surface (for example, a touch panel). It should befurther understood that, in some other embodiments of this application,the electronic device may be, for example, a desktop computer with atouch-sensitive surface (for example, a touch panel), instead of aportable electronic device.

As shown in FIG. 1 and FIG. 2, the terminal in the embodiments of thisapplication may be a mobile phone 100. The following describes theembodiments in detail by using the mobile phone 100 as an example.

As shown in FIG. 1, the mobile phone 100 may specifically includecomponents such as a processor 101, a radio frequency (RF) circuit 102,a memory 103, a touchscreen 104, a Bluetooth apparatus 105, one or moresensors 106, a Wi-Fi apparatus 107, a positioning apparatus 108, anaudio circuit 109, a peripheral interface 110, and a power supplyapparatus 111. These components may communicate by using one or morecommunications buses or signal cables (not shown in FIG. 1). A personskilled in the art may understand that a hardware structure shown inFIG. 1 does not constitute a limitation on the mobile phone, and themobile phone 100 may include more or fewer components than those shownin the figure, or combine some components, or have a different componentarrangement.

The following specifically describes each component of the mobile phone100 with reference to FIG. 1.

The processor 101 is a control center of the mobile phone 100, isconnected to various parts of the mobile phone 100 by using variousinterfaces and lines, and executes various functions and data processingof the mobile phone 100 by running or executing an application program(app for short) stored in the memory 103 and by invoking data stored inthe memory 103. In some embodiments, the processor 101 may include oneor more processing units. For example, the processor 101 may beconfigured to control adjustment of a focal length of a lens assembly ina camera module. For specific descriptions of controlling, by theprocessor, adjustment of the focal length of the lens assembly, refer tothe following descriptions. The processor 101 is further configured tocontrol a lens assembly driving apparatus in the camera module to drivethe lens assembly to move along an optical axis, and adjust the focallength of the inner focusing lens assembly, so that the lens assemblycompletes focusing on a photographed object.

The radio frequency circuit 102 may be configured to receive and sendradio signals during information receiving and sending or during a call.Particularly, after receiving downlink data from a base station, theradio frequency circuit 102 may send the downlink data to the processor101 for processing. In addition, the radio frequency circuit 102 sendsuplink data to the base station. Usually, the radio frequency circuitincludes but is not limited to an antenna, at least one amplifier, atransceiver, a coupler, a low noise amplifier, a duplexer, and the like.In addition, the radio frequency circuit 102 may further communicatewith another device through wireless communication. Wirelesscommunication may be implemented by using any communications standard orprotocol, including but not limited to a global system for mobilecommunications, a general packet radio service, code division multipleaccess, wideband code division multiple access, long term evolution, anemail, a short message service, and the like.

The memory 103 is configured to store an application program and data.The processor 101 executes various functions and data processing of themobile phone 100 by running the application program and the data thatare stored in the memory 103. The memory 103 mainly includes a programstorage area and a data storage area. The program storage area may storean operating system, and an application program required by at least onefunction (for example, a sound playback function and an image playbackfunction). The data storage area may store data (such as audio data anda phone book) created during use of the mobile phone 100. In addition,the memory 103 may include a high-speed random access memory, and mayfurther include a non-volatile memory, for example, a magnetic diskstorage device, a flash memory device, or another non-volatilesolid-state storage device. The memory 103 may store various operatingsystems, for example, an iOS operating system developed by Apple and anAndroid operating system developed by Google.

The mobile phone may include an input component and an output component.The input component may receive an input operation performed by a useron the mobile phone, for example, receive a voice operation that isinput by the user, or receive a touch operation that is input by theuser. The output component may output an internal data processing resultof the mobile phone to the user. For example, the mobile phone outputs avoice, an interface, and the like by using the output component. Forexample, the input component and the output component may be integratedtogether. For example, in a possible case, an input component touchpad104-1 and an output component display screen 104-2 are integrated intothe touchscreen 104. The touchscreen 104 may include the touchpad 104-1and the display screen 104-2. The touchpad 104-1 may be used as theinput component to collect a touch event performed by the user of themobile phone 100 on or near the touchpad 104-1 (for example, anoperation performed by the user on the touchpad 104-1 or near thetouchpad 104-1 by using any proper object such as a finger or a stylus),and send collected touch information to another component such as theprocessor 101.

A touch event performed by the user near the touchpad 104-1 may bereferred to as floating touch. The floating touch may mean that the userdoes not need to directly touch the touchpad to select, move, or drag atarget (for example, an icon), but only needs to be located near theterminal to perform a desired function. In an application scenario ofthe floating touch, terms such as “touch” and “contact” do not implydirect contact with the touchscreen, but are contact near or close tothe touchscreen.

Specifically, two types of capacitive sensors, that is, amutual-capacitance sensor and a self-capacitance sensor, may be disposedin the touchpad 104-1. The two types of capacitive sensors may bealternately arranged on the touchpad 104-1 in an arrayed manner. Themutual-capacitance sensor is configured to implement normal conventionalmulti-point touch, that is, detect a gesture of the user when the usercontacts the touchpad 104-1. The self-capacitance sensor can generate asignal that is stronger than a signal generated by themutual-capacitance sensor, so as to detect finger sensing farther awayfrom the touchpad 104-1. Therefore, when the finger of the user hoversover the screen, because a signal generated by the self-capacitancesensor is stronger than a signal generated by the mutual-capacitancesensor, the mobile phone 100 can detect a gesture of the user above thescreen, for example, at 20 mm above the touchpad 104-1.

Optionally, the touchpad 104-1 on which floating touch can be performedmay be implemented in a capacitive type, an infrared light sensing type,an ultrasonic wave type, or the like. In addition, the touchpad 104-1may be implemented in a plurality of types such as a resistive type, acapacitive type, an infrared type, and a surface acoustic wave type. Thedisplay screen 104-2 may be used as the output component, and isconfigured to display information entered by the user or informationprovided for the user, and various menus of the mobile phone 100. Thedisplay screen 104-2 may be configured in a form of a liquid crystaldisplay, an organic light-emitting diode, or the like. The touchpad104-1 may cover the display screen 104-2. After detecting a touch eventon or near the touchpad 104-1, the touchpad 104-1 transfers the touchevent to the processor 101 to determine a type of the touch event. Then,the processor 101 may provide a corresponding visual output on thedisplay screen 104-2 based on the type of the touch event.

In FIG. 1, the touchpad 104-1 and the display screen 104-2 are used astwo independent components to implement input and output functions ofthe mobile phone 100. However, in some embodiments, the touchpad 104-1and the display screen 104-2 may be integrated to implement the inputand output functions of the mobile phone 100.

It may be understood that the touchscreen 104 is formed by stacking aplurality of layers of materials. In this embodiment of thisapplication, only the touchpad (layer) and the display screen (layer)are presented, and other layers are not recorded in this embodiment ofthis application. In addition, in some other embodiments of the presentinvention, the touchpad 104-1 may cover the display screen 104-2, and asize of the touchpad 104-1 is greater than a size of the display screen104-2, so that the display screen 104-2 is completely covered by thetouchpad 104-1. Alternatively, the touchpad 104-1 may be disposed on afront side of the mobile phone 100 in a full-panel form, that is, anytouch of the user on the front side of the mobile phone 100 can besensed by the mobile phone. This can implement full-touch experience onthe front side of the mobile phone. In some other embodiments, thetouchpad 104-1 is disposed on a front side of the mobile phone 100 in afull-panel form, and the display screen 104-2 may also be disposed onthe front side of the mobile phone 100 in the full-panel form. This canimplement a bezel-less structure on the front side of the mobile phone.

For example, in this embodiment of this application, the input componentsuch as the touchpad 104-1 is configured to receive a photographinginstruction that is input by the user, where the photographinginstruction is used to instruct the terminal to shoot a focused picture.The output component such as the display screen 104-2 is configured tooutput the picture that is shot after focusing. For example, referringto FIG. 15(d), the user touches and taps the touchpad 104-1 to select aphotographing option 1505, so as to input a photographing instruction.Further, the terminal shoots a picture after focusing, and the displayscreen 104-2 outputs the picture that is shot by the terminal afterfocusing.

In this embodiment of this application, the mobile phone 100 may furtherhave a fingerprint recognition function. For example, a fingerprintcollection device 112 may be disposed on a back side of the mobile phone100, or a fingerprint collection device 112 may be disposed on the frontside (for example, below the touchscreen 104) of the mobile phone 100.For another example, a fingerprint collection device 112 may be disposedin the touchscreen 104 to implement the fingerprint recognitionfunction. In other words, the fingerprint collection device 112 may beintegrated with the touchscreen 104 to implement the fingerprintrecognition function of the mobile phone 100. In this case, thefingerprint collection device 112 is disposed in the touchscreen 104,and may be a part of the touchscreen 104, or may be disposed in thetouchscreen 104 in another manner. In addition, the fingerprintcollection device 112 may be alternatively implemented as a full-panelfingerprint collection device. Therefore, the touchscreen 104 may beconsidered as a panel on which fingerprint recognition can be performedin any position. The fingerprint collection device 112 may send acollected fingerprint to the processor 101, so that the processor 101processes the fingerprint (for example, performs fingerprintverification). A main component of the fingerprint collection device 112in this embodiment of this application is a fingerprint sensor. Thefingerprint sensor may use any type of sensing technology, including butnot limited to an optical sensing technology, a capacitive sensingtechnology, a piezoelectric sensing technology, an ultrasonic sensingtechnology, or the like.

The mobile phone 100 may further include the Bluetooth apparatus 105,configured to implement data exchange between the mobile phone 100 andanother short-distance terminal (for example, a mobile phone or asmartwatch). The Bluetooth apparatus 105 in this embodiment of thisapplication may be an integrated circuit, a Bluetooth chip, or the like.

The mobile phone 100 may further include at least one sensor 106, forexample, a light sensor, a motion sensor, an image sensor, and anothersensor. Specifically, the light sensor may include an ambient lightsensor and a proximity sensor. The ambient light sensor may adjustluminance of the display screen of the touchscreen 104 based onbrightness of ambient light, and the proximity sensor may power off thedisplay screen when the mobile phone 100 moves to an ear. As a type ofmotion sensor, an accelerometer sensor may detect magnitudes ofacceleration in various directions (generally on three axes), may detecta magnitude and direction of gravity in a static state, and may be usedfor an application identifying a posture of the mobile phone (such asswitching between landscape orientation and portrait orientation, arelated game, and magnetometer posture calibration) and a functionrelated to vibration identification (such as a pedometer and knocking).The image sensor may be disposed in a camera module 115, and isconfigured to convert, into an electrical signal, a picture shot by thecamera module 115. For example, a charge coupled device (Charge CoupledDevice, CCD) image sensor has a high resolution (High Resolution), thatis, can sense and recognize a fine object, and has a relatively largephotosensitive area. A complementary metal-oxide-semiconductor(Complementary Metal-Oxide-Semiconductor, CMOS) image sensor has acharacteristic of power saving, and can reduce power consumption of themobile phone during shooting of a static photo or a dynamic video.

In addition, other sensors, such as a gyroscope, a barometer, ahygrometer, a thermometer, and an infrared sensor, that may be furtherdisposed on the mobile phone 100 are not described herein.

The Wi-Fi apparatus 107 is configured to provide, for the mobile phone100, network access that complies with a Wi-Fi-related standardprotocol. The mobile phone 100 may access a Wi-Fi access point by usingthe Wi-Fi apparatus 107, to help the user receive and send an email,browse a web page, access streaming media, and the like. The Wi-Fiapparatus 107 provides wireless broadband Internet access for the user.In some other embodiments, the Wi-Fi apparatus 107 may also serve as aWi-Fi wireless access point, and may provide Wi-Fi network access foranother terminal.

The positioning apparatus 108 is configured to provide a geographicallocation for the mobile phone 100. It may be understood that thepositioning apparatus 108 may be specifically a receiver of apositioning system such as a global positioning system (GPS), the BeiDounavigation satellite system, or Russia's GLONASS. After receiving thegeographical location sent by the positioning system, the positioningapparatus 108 sends the information to the processor 101 for processing,or sends the information to the memory 103 for storage. In some otherembodiments, the positioning apparatus 108 may alternatively be areceiver of an assisted global positioning system (AGPS). The AGPSserves as an auxiliary positioning server to assist the positioningapparatus 108 in ranging and positioning services. In this case, theauxiliary positioning server provides positioning assistance bycommunicating with the positioning apparatus 108 (that is, a GPSreceiver) of the terminal such as the mobile phone 100 through awireless communications network. In some other embodiments, thepositioning apparatus 108 may alternatively be of a positioningtechnology based on a Wi-Fi access point. Because each Wi-Fi accesspoint has a globally unique media access control (Media Access Control,MAC) address, the terminal may scan and collect broadcast signals ofsurrounding Wi-Fi access points when Wi-Fi is enabled, and therefore canobtain a MAC address that is broadcast by the Wi-Fi access point. Theterminal sends, to a location server through a wireless communicationsnetwork, data (for example, the MAC address) that can identify the Wi-Fiaccess point. The location server retrieves a geographical location ofeach Wi-Fi access point, calculates a geographical location of theterminal with reference to strength of the Wi-Fi broadcast signal, andsends the geographical location of the terminal to the positioningapparatus 108 of the terminal.

The audio circuit 109, a loudspeaker 113, and a microphone 114 mayprovide an audio interface between the user and the mobile phone 100.The audio circuit 109 may transmit, to the loudspeaker 113, anelectrical signal converted from received audio data, and theloudspeaker 113 converts the electrical signal into a sound signal foroutput. In addition, the microphone 114 converts a collected soundsignal into an electrical signal, and the audio circuit 109 receives theelectrical signal, converts the electrical signal into audio data, andthen outputs the audio data to the RF circuit 102 to send the audio datato, for example, another mobile phone, or outputs the audio data to thememory 103 for further processing.

The peripheral interface 110 is configured to provide various interfacesfor external input/output devices (for example, a keyboard, a mouse, anexternal display, an external memory, and a subscriber identity modulecard). For example, a mouse is connected by using a universal serial bus(Universal Serial Bus, USB) interface, and a subscriber identity module(SIM) card provided by a China Telecom operator is connected by using ametal contact in a subscriber identity module card slot. The peripheralinterface 110 may be configured to couple the foregoing externalinput/output peripheral device to the processor 101 and the memory 103.

The mobile phone 100 may further include the power supply apparatus 111(for example, a battery and a power management chip) that supplies powerto each component. The battery may be logically connected to theprocessor 101 by using the power management chip, to implement functionssuch as charging management, discharging management, and powerconsumption management by using the power supply apparatus 111.

The mobile phone 100 may further include the camera module 115, and thecamera module 115 may be a camera of the terminal. The camera module 115is configured to shoot a static photo, a dynamic video, or the like. Ina possible implementation, from an object side to an image side, thecamera module 115 includes a lens assembly, a lens assembly drivingapparatus, and an image sensor. For detailed descriptions of the cameramodule 115, refer to the following embodiments.

Although not shown in FIG. 1, the mobile phone 100 may further include aflash, a micro projection apparatus, a near field communication (NearField Communication, NFC) apparatus, and the like. Details are notdescribed herein.

The following describes in detail the terminal provided in theembodiments of this application. The following provides descriptions byusing an example in which the terminal is a mobile phone. This is notedherein and is not repeated in the following. Referring to FIG. 2, amobile phone 200 is used as an example. A camera module 201 in themobile phone 200 may be a rear-facing camera shown in FIG. 2, and therear-facing camera is disposed on a top of a back side of the mobilephone. Certainly, the camera module may be alternatively disposed atanother location, for example, disposed inside the mobile phone. When auser has a photographing requirement, the camera module is ejected toperform photographing.

FIG. 3 shows an example structure of the camera module in the terminalaccording to this embodiment of this application. From an object side toan image side, the camera module 201 includes a lens assembly 301, alens assembly driving apparatus 302, and an image sensor 303. It shouldbe noted that the components in FIG. 3 are merely example components,and actual shapes and sizes of the components are not limited to thecase shown in FIG. 3.

The object side is a side of a photographed object, and the image sideis a side on which the image sensor implements imaging. The lensassembly driving apparatus includes but is not limited to a voice coilmotor, a piezoelectric ceramic, and a micro-electro-mechanical system(Micro-Electro-Mechanical System, MEMS). The image sensor includes butis not limited to the CCD image sensor and the CMOS image sensor thatare mentioned above.

The lens assembly driving apparatus is configured to drive the lensassembly to move along an optical axis. A driving stroke of the lensassembly driving apparatus is related to a shortest focus distance ofthe lens assembly. In this embodiment of this application, a drivingstroke of a motor can make the shortest focus distance of the lensassembly range from 1 cm to 5 cm.

A focus distance is a distance between an object and an image, that is,a sum of a distance from the photographed object to the lens assemblyand a distance from the lens assembly to the image sensor, that is, adistance between the photographed object and the image sensor. Theshortest focus distance is a shortest focus distance for focusing thephotographed object. That the photographed object is focused means thatthe photographed object can be imaged into a relatively clear image onthe image sensor. In other words, the shortest focus distance is ashortest distance, between the photographed object and the image sensor,for forming a relatively clear image.

For example, the lens assembly driving apparatus is a motor. When thephotographed object is at a relatively short distance, for example, 1cm, from the image sensor, the motor drives the lens assembly to movealong the optical axis for a specific stroke (for example, 400 μm), sothat the photographed object is focused at the distance of 1 cm from theimage sensor. When the photographed object is at a distance of, forexample, 7 cm, from the image sensor, the motor drives the lens assemblyto move along the optical axis for a specific stroke (for example, 50μm), so that the photographed object is focused at the distance of 7 cmfrom the image sensor. In this embodiment of this application, thedriving stroke of the motor can make the shortest focus distance of thelens assembly range from 1 cm to 5 cm. In other words, when the distancebetween the photographed object and the image sensor is within the rangefrom 1 cm to 5 cm, the photographed object can be focused, that is, thephotographed object can be imaged into a relatively clear image on theimage sensor.

It should be noted that the lens assembly driving apparatus is mainlyconfigured to push the lens assembly along the optical axis, and pushthe lens assembly along the optical axis to an optimal imaging position.For different lens assemblies disposed in the terminal, the lensassembly driving apparatus may have different driving strokes. Forexample, a lens assembly 1 is disposed in the terminal, and a strokerange of the lens assembly driving apparatus is from 0 μm to 400 μm. Inthis way, when the photographed object is 1 cm to 5 cm away from theimage sensor, the lens assembly driving apparatus can push the lensassembly along the optical axis to the optimal imaging position. Foranother example, a lens assembly 2 is disposed in the terminal, and adriving stroke range of the lens assembly driving apparatus is from 0 μmto 300 μm. In this way, when the photographed object is 1 cm to 5 cmaway from the image sensor, the lens assembly driving apparatus can pushthe lens assembly along the optical axis to the optimal imagingposition. It can be learned that, for different lens assemblies, thelens assembly driving apparatus may also have different driving strokeranges.

It may be understood that the lens assembly driving apparatus may beconnected to the lens assembly in some manner. The voice coil motor isused as an example. Optionally, the lens assembly and the voice coilmotor may be connected to each other by using a screw-thread-embeddedstructure shown in (a) in FIG. 4. Specifically, such a structure mainlydepends on fitting of screw threads between the voice coil motor 2 andthe lens assembly 1, to form a preliminary bonding force, and thenfixing is implemented through glue dispensing from an upper end of thescrew-thread-embedded structure, so that an outer surface of the lensassembly 1 is fixed to an inner surface of the voice coil motor 2. Inthis way, the lens assembly 1 and the voice coil motor 2 are bondedtogether. Alternatively, the lens assembly 1 and the voice coil motor 2may be connected to each other by using a screw-thread-freesmooth-surfaced structure shown in (b) in FIG. 4. For a specific methodfor connection by using the screw-thread-free smooth-surfaced structure,refer to the prior art. Details are not described herein. Certainly, thelens assembly and the voice coil motor may be alternatively connected toeach other in another manner. This is not limited in this embodiment ofthis application. In addition, for a connection relationship between thelens assembly and each of the MEMS and the piezoelectric ceramic, referto a manner in the prior art. This is not limited in this embodiment ofthis application.

In this embodiment of this application, to support relatively clearimaging of the photographed object at the distance of 1 cm to 5 cm fromthe image sensor, at least one of the following three types of lensassemblies may be used:

Case 1: The lens assembly is a fixed-focus ultra-wide-angle lensassembly.

For example, a field of view (Field of view, FOV) of theultra-wide-angle lens assembly is greater than or equal to 100°, and avalue range of an equivalent focal length of the ultra-wide-angle lensassembly is from 10 mm to 20 mm.

It should be noted that, in this embodiment of this application, theterminal may implement macro imaging by disposing different lensassemblies. Specific parameters of different lens assemblies aredifferent. Generally, when a parameter of the lens assembly falls withinthe parameter range mentioned in this embodiment of this application,the terminal can implement macro imaging. For example, when the FOV ofthe ultra-wide-angle lens assembly is 110°, and the equivalent focallength is 15 mm, macro imaging of the terminal may be implemented byadjusting another parameter, such as a curvature or a refractive index,of the ultra-wide-angle lens assembly. In this embodiment of thisapplication, macro imaging means that the photographed object can beimaged into a relatively clear image at the distance of 1 cm to 5 cmfrom the image sensor. This is noted herein and is not repeated in thefollowing.

FIG. 5 shows a structure of an example ultra-wide-angle lens assemblyaccording to an embodiment of this application. The ultra-wide-anglelens assembly includes six lenses. From an object side to an image side,a focal power of the first lens L1 is negative, and a focal power of thesecond lens L2 is positive. An aperture stop STO is disposed between L1and L2. A focal power of the third lens L3 is negative, a focal power ofthe fourth lens L4 is positive, a focal power of the fifth lens L5 ispositive, and a focal power of the sixth lens L6 is negative. An FOVvalue of the ultra-wide-angle lens assembly may be 100°, or may be avalue greater than 100°. An equivalent focal length of theultra-wide-angle lens assembly may be a value within a range from 10 mmto 20 mm. A distance from the first lens L1 to the image sensor 303 isdefined as a total length (Total Track Length, TTL), a half image heightof the lens is IH, and a range of IH/TTL is from 0.5 to 0.6. Certainly,the ultra-wide-angle lens assembly in this embodiment of thisapplication may alternatively have another structure and anotherquantity of lenses. For example, the ultra-wide-angle lens assemblyincludes five lenses, and focal powers, curvatures, and the like of thelenses from the object side to the image side may be set based on anactual situation. Alternatively, the ultra-wide-angle lens assembly mayuse an existing structure. A specific structure of the ultra-wide-anglelens assembly is not limited in this embodiment of this application.

In this embodiment of this application, the equivalent focal length ofthe ultra-wide-angle lens assembly is relatively short (10 mm to 20 mm).Therefore, a smaller shortest focus distance can be obtained. In otherwords, when the lens assembly is relatively close to the photographedobject, focusing can still be successfully performed, to obtain ahigh-quality and high-definition image through imaging.

Referring to FIG. 7, (a) in FIG. 7 shows an image photographed by anexisting mobile phone in a macro mode (for example, a distance between aphotographed object and a lens assembly is 5 cm), and the image obtainedthrough imaging is relatively blurry; (b) in FIG. 7 is an imagephotographed by the mobile phone according to the embodiments of thisapplication in a macro mode. In (b) in FIG. 7, details of an insect anda leaf are relatively clear.

In addition, when the lens assembly is relatively close to thephotographed object, a depth of field of a photographed image isrelatively small because a focus distance is relatively short, so that arelatively good bokeh effect is achieved for the photographed image.

FIG. 8 shows a picture shot by the mobile phone according to theembodiments of this application. The picture has a relatively good bokeheffect.

Optionally, a horizontal magnification range of the lens assembly in acentral field of view is from 0.03 to 0.43. The lens assembly has anegative distortion in an edge field of view, and the negativedistortion is greater than or equal to −30%.

The horizontal magnification is a magnification in a directionperpendicular to the optical axis, and a value of the horizontalmagnification is a ratio of an image size to an actual object size inthe direction perpendicular to the optical axis. The edge field of viewis a field of view between 0.8 and 1. Specifically, referring to FIG. 6,the entire visible range is divided into N parts, where a maximumvisible range is denoted as 1, a central field of view is denoted as 0,and an area between 0.8 and 1 is an edge field of view, that is, α and βare edge fields of view. The negative distortion means that a horizontalmagnification of the lens assembly in the edge field of view is lessthan the horizontal magnification of the lens assembly in the centralfield of view. In this way, when the camera module photographs aminiature landscape, a lower magnification in the edge field of view isequivalent to a decrease in a magnification caused by an increase in anobject distance during photographing of a macro landscape, so that thecamera module can obtain, through photographing, an image with arelatively good perspective effect.

FIG. 9 shows a picture shot by the mobile phone according to theembodiments of this application. A micro scene (several small dolls on atable) and a macro scene (a building in FIG. 9) have a relatively goodperspective effect, so that the picture is more stereoscopic.

Optionally, a quantity of lenses in the lens assembly ranges from 5 to8, and a size of the image sensor ranges from 1/3.06 to 1/2.78.Optionally, the lens is made of plastic or glass, or is made of amixture of plastic and glass. Optionally, an aperture range of the lensassembly is from F2.4 to F1.8.

Case 2: The lens assembly is an inner focusing lens assembly. The innerfocusing lens assembly includes n lenses that are sequentially arrangedalong the optical axis. The n lenses include one or more movable lensgroups. Each movable lens group includes one or more movable lenses. Themovable lens is a lens whose position relative to the lens assemblyalong the optical axis is changeable, and the position of the movablelens along the optical axis is related to a focal length of the innerfocusing lens assembly.

In the case 2, the terminal further includes a lens driving apparatus,configured to drive the one or more movable lens groups in the innerfocusing lens assembly to move along the optical axis, to adjust thefocal length of the inner focusing lens assembly.

Optionally, the lens driving apparatus may be a voice coil motor, anMEMS, or a piezoelectric ceramic.

Optionally, when the lens assembly driving apparatus drives the movablelens to move, relative positions between movable lenses in a samemovable lens group along the optical axis remain unchanged. In otherwords, the lens assembly driving apparatus moves the movable lens groupas a whole along the optical axis. For example, the lens assemblydriving apparatus drives a first lens in the movable lens group to move100 μm towards the object side along the optical axis, andcorrespondingly drives a second lens in the same movable lens group tomove 100 μm towards the object side along the optical axis. Differentmovable lens groups may move for different distances and in directionsalong the optical axis. For example, in FIGS. 10, L2 and L3 are drivento move towards an object side along an optical axis, and a movingdistance is a distance 1; L4 is driven to move towards an image sidealong the optical axis, and a moving distance is a distance 2. Differentmovable lens groups may move for a same distance and in a same directionalong the optical axis. A specific moving rule of the movable lens groupis not limited in this embodiment of this application.

The movable lens may be connected to the lens driving apparatus in aspecific manner. For example, the movable lens may be connected to thelens driving apparatus in a glue dispensing manner. Certainly, for amanner of connection between the movable lens and the lens drivingapparatus, reference may also be made to another manner in the priorart. This is not limited in this embodiment of this application. Forexample, FIG. 10 shows an example inner focusing lens assembly accordingto an embodiment of this application. The lens driving apparatus is amotor, and a value of n is 6. In the six lenses, the movable lens L2 andthe movable lens L3 form a movable lens group, and L4 is another movablelens group. The movable lenses L2 and L3 are bonded to the motor throughglue dispensing, and the movable lens L4 is also bonded to the motorthrough glue dispensing. Correspondingly, the motor may drive L2, L3,and L4 to move relative to the inner focusing lens assembly along adirection of the optical axis.

In this embodiment of this application, through driving of the lensdriving apparatus, relative positions between movable lenses in the lensassembly along the optical axis change, that is, a spacing between thelenses in the lens assembly changes. Therefore, an opticalcharacteristic, for example, the focal length, of the entire lensassembly may change. To be specific, in this embodiment of thisapplication, the focal length of the lens assembly can be adjusted bydynamically adjusting the spacing between the lenses in the lensassembly, so that the terminal can obtain a relatively clear imagethrough imaging in a macro mode.

It should be noted that a process in which the lens assembly drivingapparatus pushes the movable lens is different from the foregoingdescribed process in which the lens assembly driving apparatus pushesthe lens assembly. The lens assembly driving apparatus pushes themovable lens in the lens assembly to move along the optical axis, so asto change the spacing between the lenses in the lens assembly, therebyadjusting the focal length of the lens assembly. The lens assemblydriving apparatus pushes the lens assembly to move along the opticalaxis, so as to adjust an object distance and an image distance by movingthe lens assembly along the optical axis, thereby determining an optimalposition of the lens assembly for imaging the photographed object into aclear image.

FIG. 10 is merely an example of the inner focusing lens assembly in thisembodiment of this application. In actual use, a quantity of lensesincluded in the lens assembly and which lens or lenses are specificallya movable lens or movable lenses may be set differently. This is notlimited in this embodiment of this application.

Case 3: The lens assembly is an inner focusing lens assembly. Referringto FIG. 11, the inner focusing lens assembly includes one or more lenseswhose focal power is variable (for example, lenses L1 and L4 in FIG.11), and the focal power of the lens whose focal power is variable isassociated with a focal length of the lens assembly.

A focal power is used to represent an ability of an optical device tobend incident parallel beams. A larger focal power indicates a higherbending degree of parallel beams. When the focal power is greater than0, bending is convergent. When the focal power is less than 0, bendingis divergent.

A shape of the lens whose focal power is variable may change underapplication of an electric field (for example, a changed current orvoltage), and the shape of the lens whose focal power is variable isrelated to the focal power of the lens whose focal power is variable.Alternatively, a refractive index of the lens whose focal power isvariable may change under application of an electric field, and therefractive index of the lens whose focal power is variable is related tothe focal power of the lens whose focal power is variable.

Correspondingly, the processor in the terminal may adjust the focalpower of the lens whose focal power is variable by controllingdeformation or the refractive index of the lens whose focal power isvariable, so as to adjust the focal length of the inner focusing lensassembly. Optionally, that the processor is configured to adjust thefocal length of the inner focusing lens assembly may be specificallyimplemented as follows: The processor controls a current or voltage thatis input to the lens whose focal power is variable, to change therefractive index of the lens whose focal power is variable, so as toadjust the focal power of the lens whose focal power is variable,thereby adjusting the focal length of the inner focusing lens assembly.Alternatively, that the processor is configured to adjust the focallength of the inner focusing lens assembly may be specificallyimplemented as follows: The processor is configured to control the lenswhose focal power is variable to deform, to adjust the focal power ofthe lens whose focal power is variable, thereby adjusting the focallength of the inner focusing lens assembly. Herein, that the processorcontrols the lens whose focal power is variable to deform may bespecifically as follows: The processor controls a driving apparatus, sothat the driving apparatus pushes and squeezes the lens to deform.

Optionally, the lens whose focal power is variable is anelectro-material lens or a deformable lens. The electro-material is amaterial whose refractive index may change under application of anelectric field. The deformable lens may deform under driving of thedriving apparatus. The driving apparatus may be a motor, an MEMS, or thelike. Certainly, a material of the lens whose focal power is variable isnot limited to the foregoing two types, and may alternatively be anothermaterial. This is not limited in this embodiment of this application.

In this embodiment of this application, an electric field may be appliedto a lens whose focal power is variable, such as L1 or L4, to change thefocal power of the lens, so as to adjust the focal length of the entirelens assembly, so that the terminal can obtain a relatively clear imagethrough imaging in a macro mode.

It should be noted that the camera module shown in FIG. 3 may furtherinclude another component. For example, an infrared cut-off filter 304is disposed between the lens assembly 301 and the image sensor 303, andis configured to filter out near-infrared and ultraviolet bands inambient light. Optionally, a thickness of the infrared cut-off filter is0.11 mm or 0.21 mm, and a material of the infrared cut-off filter isresin or blue glass. Certainly, the infrared cut-off filter mayalternatively be of another material, and/or a filter with anotherthickness. A material and thickness of the filter are not limited inthis embodiment of this application.

An embodiment of this application further provides a macro imagingmethod. Referring to FIG. 12, the method is applied to the terminalshown in the foregoing case 1. The terminal has a camera module, aninput component, and an output component. From an object side to animage side, the camera module has a lens assembly, a lens assemblydriving apparatus, and an image sensor. The lens assembly is anultra-wide-angle lens assembly, and the method includes the followingsteps.

S1201: The input component receives a camera turn-on operation that isinput by a user, to turn on a camera.

For example, the input component may be a touchpad 104-1. Referring toFIG. 15(a), the user touches and taps a camera icon 1501 displayed on ascreen, and the touchpad 104-1 collects information about the cameraturn-on operation that is input by the user, and transfers theinformation to a processor for further processing, to turn on thecamera. FIG. 15(b) shows a camera interface 1502 of the terminal. Theinterface may be displayed to the user by a display screen 104-2 of theterminal.

S1202: The processor detects a distance between a photographed objectand the image sensor.

(Optional) S1203: The terminal detects that the distance between thephotographed object and the image sensor is within a macro range, andthe output component outputs a first interface 1504, where the firstinterface 1504 is used to prompt the user whether to enable macrophotographing.

The macro range is from 1 cm to 5 cm.

Optionally, the processor 101 of the terminal measures the distancebetween the photographed object and the image sensor in a laser rangingmanner. For a specific principle and process of laser ranging, refer tothe prior art. Details are not described herein. Alternatively, theprocessor 101 collects an image on the image sensor, and when the imageis relatively blurry, may preliminarily determine that the photographedobject is relatively close to the image sensor.

Optionally, the processor 101 feeds back the measured distance to thelens assembly driving apparatus.

Referring to FIG. 15(a) to FIG. 15(d), after the camera of the terminalis turned on, if the terminal detects that the distance between thephotographed object and the image sensor is within the macro range, asshown in FIG. 15(c), the output component of the terminal, that is, thedisplay screen 104-2, outputs the first interface 1504, to prompt theuser whether to enable macro photographing, so as to obtain betterimaging quality of short-distance photographing.

S1204: The input component receives a first operation that is input bythe user, where the first operation is used to instruct the terminal toenable macro photographing.

As shown in FIG. 15(c), the display screen 104-2 displays options “yes”and “no”, and the user may input the first operation by using the inputcomponent, for example, touch the option “yes” by using the touchpad104-1 shown in FIG. 1. Optionally, the touchpad 104-1 sends collectedtouch information (that is, tapping the option “yes” by the user) to,for example, the processor for processing.

Optionally, when the user touches the option “no” by using, for example,the touchpad 104-1, the terminal can determine that a real photographingintention of the user is not macro photographing. In this case, theterminal may shoot a picture by using an existing method.

S1205: Under control of the processor, the lens assembly drivingapparatus drives the lens assembly to move along an optical axis, toperform focusing on the photographed object.

For example, the terminal may automatically perform focusing on thephotographed object. To be specific, after the terminal receives thefirst operation of the user and determines to enable macrophotographing, the processor of the terminal may control the lensassembly driving apparatus, so that the lens assembly driving apparatusdrives the ultra-wide-angle lens assembly to move along the opticalaxis, thereby completing a focusing process. The terminal may furtherreceive a focusing operation that is input by the user on a mobile phoneinterface, and adjust a position of the ultra-wide-angle lens assemblyalong the optical axis based on the focusing operation. For example,referring to FIG. 15(d), the user may select a focus by touching aninsect displayed on the display screen. After receiving an input of theuser, the terminal uses the insect as the focus, and adjusts a positionof the ultra-wide-angle lens assembly along the optical axis.

S1206: The input component receives a photographing instruction that isinput by the user, to instruct the terminal to shoot a focused picture.

For example, referring to FIG. 15(d), assuming that the user wants toshoot a static picture in a macro mode, the user taps a photographingoption 1505 by using the touchpad 104-1, to input a photographinginstruction; assuming that the user wants to shoot a dynamic video in amacro mode, the user taps a shooting option 1506 by using the touchpad104-1, to input a shooting instruction.

Certainly, referring to FIG. 17(a), if the terminal has enabled“voice-activated photographing”, the user may input a voice by using theinput component such as a microphone, to input a photographinginstruction. Alternatively, the user may input a photographinginstruction in another manner by using another input component. Detailsare not described herein in this embodiment of this application.

S1207: The output component outputs the picture that is shot afterfocusing.

Referring to FIG. 15(d), the user may tap the photographing option 1505by using the touchpad 104-1, to trigger the terminal to shoot a picturein the macro mode, and the output component, for example, the displayscreen 104-2, outputs the picture shot in the macro mode.

Certainly, when the terminal detects that the distance between thephotographed object and the image sensor is within the macro range, theterminal may not output the first interface 1504 shown in FIG. 15(c),but automatically enables the macro photographing mode, and drives theultra-wide-angle lens assembly by using the lens assembly drivingapparatus, to complete focusing. Then, the terminal shoots and outputsthe focused picture. In other words, in FIGS. 12, S1203 and S1204 areoptional steps.

According to the macro imaging method provided in this embodiment ofthis application, the terminal may detect whether the distance betweenthe photographed object and the image sensor meets a macro condition.When the macro condition is met, the lens assembly driving apparatus inthe terminal pushes the lens assembly to move along the optical axis, tocomplete focusing. In this way, a relatively clear image can bephotographed in the macro mode.

An embodiment of this application further provides a macro imagingmethod. The method is applied to the terminal shown in the foregoingcase 2. The terminal has a camera module, an input component, and anoutput component. From an object side to an image side, the cameramodule has an inner focusing lens assembly, a lens assembly drivingapparatus, and an image sensor. The inner focusing lens assemblyincludes n lenses that are sequentially arranged along an optical axis.The n lenses include one or more movable lens groups. Each movable lensgroup includes one or more movable lenses. The movable lens is a lenswhose position relative to the lens assembly along the optical axis ischangeable, and the position of the movable lens along the optical axisis related to a focal length of the lens assembly. Referring to FIG. 13,the method includes steps S1201 to S1204, S1301, S1302, S1206, andS1207.

For descriptions of S1201 to S1204, refer to the foregoing descriptions.Details are not described herein again.

S1301: Under control of a processor, a lens driving apparatus drives theone or more movable lens groups in the inner focusing lens assembly tomove along the optical axis, to adjust the focal length of the innerfocusing lens assembly.

For example, the lens assembly driving apparatus is a motor. Referringto FIG. 10, the motor may drive a movable lens group constituted by L2and L3 to move towards the object side along the optical axis, so as toadjust the focal length of the lens assembly.

S1302: Under control of the processor, the lens assembly drivingapparatus drives the inner focusing lens assembly to move along theoptical axis, to perform focusing on a photographed object.

For descriptions of S1206 and S1207, refer to the foregoingdescriptions. Details are not described herein again.

According to the macro imaging method provided in this embodiment ofthis application, when the terminal detects that a distance between thephotographed object and the image sensor meets a macro condition, thelens assembly driving apparatus in the terminal may drive the one ormore movable lenses to move along the optical axis, to dynamicallyadjust the focal length of the lens assembly, and the lens assemblydriving apparatus can push, in a macro mode, the lens assembly to movealong the optical axis, to complete focusing. In this way, a clear imagecan also be obtained through imaging in the macro mode.

An embodiment of this application further provides a macro imagingmethod. The method is applied to the terminal shown in the foregoingcase 3. The terminal has a camera module, an input component, an outputcomponent, and a processor. From an object side to an image side, thecamera module has a lens assembly, a lens assembly driving apparatus,and an image sensor. The lens assembly is an inner focusing lensassembly. The inner focusing lens assembly includes one or more lenseswhose focal power is variable, and the focal power of the lens whosefocal power is variable is associated with a focal length of the innerfocusing lens assembly. Referring to FIG. 14, the method includes stepsS1201 to S1204, S1401, S1402, S1206, and S1207.

For descriptions of S1201 to S1204, refer to the foregoing descriptions.Details are not described herein again.

S1401: The processor controls adjustment of the focal power of the oneor more lenses that are in the inner focusing lens assembly and whosefocal power is variable, to adjust the focal length of the lensassembly.

Optionally, the terminal controls, by using the processor, a current orvoltage that is input to the lens whose focal power is variable, toadjust the focal power of the lens whose focal power is variable.Alternatively, the terminal controls, by using the processor, the lenswhose focal power is variable to deform, to adjust the focal power ofthe lens whose focal power is variable. Certainly, the processor of theterminal may alternatively control, in another manner, the focal powerof the lens whose focal power is variable to change, so as to adjust thefocal length of the inner focusing lens assembly.

S1402: The processor controls the lens assembly driving apparatus, sothat the lens assembly driving apparatus drives the inner focusing lensassembly to move along the optical axis, to perform focusing on aphotographed object.

For descriptions of S1206 and S1207, refer to the foregoingdescriptions. Details are not described herein again.

According to the macro imaging method provided in this embodiment ofthis application, when the terminal detects that a distance between thephotographed object and the image sensor meets a macro condition, theterminal may change the focal power of the lens by controllingdeformation or a refractive index of the lens, so as to adjust the focallength of the lens assembly, and may complete focusing by using the lensassembly driving apparatus. In this way, a high-quality image can beobtained through imaging in a macro mode.

Referring to FIG. 16(a) to FIG. 16(c), in some other embodiments of thisapplication, after the camera of the terminal is turned on, as shown inFIG. 15(a), the user may trigger, by tapping a mode option 1503, theterminal to jump to a mode selection interface 1601 shown in FIG. 16(b).Then, on the mode selection interface 1601, the user may tap a macrophotographing option 1602 to trigger the terminal to perform macroimaging. Optionally, after detecting that the user taps the macrophotographing option 1602, the terminal having the structure shown inthe foregoing case 1 may perform S1205 to S1207. After detecting thatthe user taps the macro photographing option 1602, the terminal havingthe structure shown in the foregoing case 2 may perform S1301, S1302,S1206, and S1207. After detecting that the user taps the macrophotographing option 1602, the terminal having a structure such as thestructure shown in the foregoing case 3 may perform S1401, S1402, S1206,and S1207.

Certainly, the terminal may alternatively jump to the mode selectioninterface 1601 in another manner. For example, when receiving aleft-slide operation performed by the user on the camera interface 1502,the terminal jumps to the mode selection interface 1601. A manner ofentering the mode selection interface is not limited in this embodimentof this application.

Optionally, in some scenarios, the user may not know an actualphotographing effect of macro photographing. In this case, the terminalmay indicate, to the user, the effect of macro photographing or otherinformation about macro photographing. As shown in FIG. 16(b), the userchooses to enable macro photographing. In this case, the terminal mayoutput an interface prompt, for example, a prompt box “macrophotographing can support clear imaging when a photographed object is 1cm to 5 cm away from an image sensor” pops up, and options “yes” and“no” may be set in the prompt box. When the user touches “yes”, theterminal may determine that a real photographing intention of the useris macro photographing. Therefore, the terminal performs the foregoingmacro photographing method.

In addition, in some other embodiments of this application, the user mayfurther preset a macro photographing function of the terminal. Forexample, as shown in FIG. 17(a), on a setting interface 1701, the usermay tap a macro photographing enabling option 1702 to enable the macrophotographing function. Optionally, after the terminal enables the macrophotographing function, the terminal may perform the foregoing macroimaging method. When the terminal does not enable the macrophotographing function, the terminal does not have permission to performthe foregoing macro imaging method. When the user wants to implementmacro photographing, if 1702 shown in FIG. 17(a) is off, the terminalmay output a prompt interface to prompt the user to enable the macrophotographing function, so that the terminal can obtain a clear imagethrough imaging in a macro mode.

It should be noted that the terminal may enter the setting interface1701 in a plurality of manners. For example, when receiving aright-slide operation performed by the user on the camera interface1502, the terminal may jump to the setting interface 1701. A manner ofentering the setting interface by the terminal is not limited in thisembodiment of this application. Further, the terminal may save a settingperformed by the user on the setting interface. Subsequently, when theuser turns on the camera, if the terminal detects that the photographedobject is relatively close to the image sensor, the terminal may performthe foregoing macro imaging method, to implement clear imaging in themacro mode.

The foregoing descriptions are merely specific implementations of thepresent invention, but are not intended to limit the protection scope ofthe present invention. Any variation or replacement readily figured outby a person skilled in the art within the technical scope disclosed inthe present invention shall fall within the protection scope of thepresent invention. Therefore, the protection scope of the presentinvention shall be subject to the protection scope of the claims.

What is claimed is:
 1. A camera module, comprising: an image sensor; alens module comprising at least five lenses disposed in sequence betweenan object side and an image side of the camera module, the at least fivelenses including a first lens closest to the object side and a secondlens next to the first lens, a ratio between a half-image height of thelens module and a total track length of the camera module being greaterthan or equal to 0.5 and less than or equal to 0.6, a field of view ofthe lens module being greater than or equal to 100 degrees, an apertureof the lens module being greater than or equal to F1.8 and less than orequal to F2.4, and an equivalent focal length of the lens module beinggreater than or equal to 10 mm and less than or equal to 20 mm; and ahorizontal magnification range of the lens module in a central field ofview is greater than or equal to 0.03 and less than or equal to 0.43. 2.The camera module of claim 1, wherein the lens module is configured tosupport clear imaging when a distance between a photographed object andthe image sensor is greater than or equal to 1 cm and less than or equalto 5 cm.
 3. The camera module of claim 1, wherein the lens moduleincludes six lenses, the six lenses including, in sequence from theobject side to the image side, the first lens, the second lens, a thirdlens, a fourth lens, a fifth lens, and a sixth lens.
 4. The cameramodule of claim 3, wherein the first lens has a negative focal power. 5.The camera module of claim 3, wherein the sixth lens has a negativefocal power.
 6. The camera module of claim 3, wherein the first lens hasa negative focal power, the second lens has a positive focal power, thethird lens has a negative focal power, the fourth lens has a positivefocal power, the fifth lens has a positive focal power, and the sixthlens has a negative focal power.
 7. The camera module of claim 1,wherein the camera module further comprises a lens driving apparatus,wherein the lens driving apparatus is configured to move at least one ofthe at least five lenses in a direction of an optical axis of the lensmodule.
 8. The camera module of claim 1, wherein the lens module has anegative distortion in an edge field of view, and the negativedistortion is greater than or equal to −30%.
 9. The camera module ofclaim 1, wherein the at least five lenses are made of materials selectedfrom at least one of plastic, glass, or a mixture of plastic and glass.10. A terminal device, comprising: a camera module including a lensmodule, a lens driving apparatus, and an image sensor; an inputcomponent configured to receive user inputs; an output componentconfigured to output images or videos generated by the camera module;and a processor configured to determine a distance between aphotographed object and the image sensor of the camera module, wherein:the lens module comprises at least five lenses disposed in sequencebetween an object side and an image side of the camera module, the atleast five lenses including a first lens closest to the object side anda second lens next to the first lens, a ratio between a half-imageheight of the lens module and a total track length of the camera moduleis greater than or equal to 0.5 and less than or equal to 0.6, a fieldof view of the lens module is greater than or equal to 100 degrees, anaperture of the lens module is greater than or equal to F1.8 and lessthan or equal to F2.4, an equivalent focal length of the lens module isgreater than or equal to 10 mm and less than or equal to 20 mm, ahorizontal magnification range of the lens module in a central field ofview is greater than or equal to 0.03 and less than or equal to 0.43,and the lens driving apparatus is configured to move at least one of theat least five lenses of the lens module in a direction of an opticalaxis of the lens module.
 11. The terminal device of claim 10, whereinthe lens module includes six lenses, the six lenses including, insequence from the object side to the image side, the first lens, thesecond lens, a third lens, a fourth lens, a fifth lens, and a sixthlens.
 12. The terminal device of claim 11, wherein the first lens has anegative focal power.
 13. The terminal device of claim 12, wherein thesixth lens has a negative focal power.
 14. A method of macro imagingusing a terminal device having a camera module, comprising: receiving afirst user input for activating the camera module, wherein the cameramodule includes an image sensor, a lens module comprising at least fivelenses disposed in sequence between an object side and an image side ofthe camera module, and a lens driving apparatus configured to move atleast one of the at least five lenses in a direction of an optical axisof the lens module, the at least five lenses including a first lensclosest to the object side and a second lens next to the first lens, aratio between a half-image height of the lens module and a total tracklength of the camera module being greater than or equal to 0.5 and lessthan or equal to 0.6, a field of view of the lens module being greaterthan or equal to 100 degrees, an aperture of the lens module beinggreater than or equal to F1.8 and less than or equal to F2.4, ahorizontal magnification range of the lens module in a central field ofview is greater than or equal to 0.03 and less than or equal to 0.43,and an equivalent focal length of the lens module being greater than orequal to 10 mm and less than or equal to 20 mm; displaying a previewimage received from the camera module; starting a macro imaging mode ofthe terminal device; focusing the camera module on a photographedobject; and generating an image of the photographed object in responseto a second user input.
 15. The method of claim 14, wherein staring themacro imaging mode of the terminal device includes; determining adistance between the photographed object and the imaging sensor of thecamera module is greater than or equal to 1 cm and less than or equal to5 cm; and starting, automatically, the macro imaging mode of theterminal device in response to the determination.
 16. The method ofclaim 14, wherein starting the macro imaging mode of the terminal deviceincludes: determining a distance between the photographed object and theimaging sensor of the camera module is greater than or equal to 1 cm andless than or equal to 5 cm; displaying, automatically, a first interfaceprompting the user whether to start the macro imaging mode; and startingthe macro imaging mode in response to a user input indicating aselection for starting the macro imaging mode.
 17. The method of claim14, wherein starting the macro imaging mode of the terminal deviceincludes: displaying a first button; receiving a user input foractivating the first button; and starting the macro imaging mode inresponse to the activation of the first button.
 18. The method of claim14, wherein starting the macro imaging mode of the terminal deviceincludes displaying a message indicating the macro imaging mode isstarted.
 19. The method of claim 14, wherein focusing the lens module onthe photographed object includes: receiving a third user input forfocusing the camera module; and focusing the camera module in responseto the third user input.
 20. The camera module of claim 14, wherein theimage sensor has a size greater than or equal to 1/3.06 inch and lessthan or equal to 1/2.78 inch.